#案例：发送带请求参数(param)的POST/DELETE/PUT请求
#DELETE http://127.0.0.1:8000/api/departments/?$dep_id_list=T2005N,T2009N

import requests

#方法1
# r=requests.delete(url="http://127.0.0.1:8000/api/departments/",params="$dep_id_list=T2005N,T2009N")

#方法2
r=requests.delete(url="http://127.0.0.1:8000/api/departments/?$dep_id_list=T20010N")
